package bscorp.appbase.model;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

import java.util.Date;

/**
 * 用户表
 */
@DatabaseTable
public class User {

    /**
     * 用户类型---用户
     */
    public static final String TYPE_USER = "user";
    /**
     * 用户类型---维修人员
     */
    public static final String TYPE_WORKER = "worker";

    @DatabaseField(generatedId = true)
    int id;
    /**
     * 登陆名
     */
    @DatabaseField
    String login;
    /**
     * 手机号码
     */
    @DatabaseField
    String phone;
    /**
     * 用户名
     */
    @DatabaseField
    String name;
    /**
     * 登陆密码
     */
    @DatabaseField
    String password;
    /**
     * 用户类型
     */
    @DatabaseField
    String type;
    /**
     * 性别
     */
    @DatabaseField
    String gender;
    /**
     * 最近登陆时间
     */
    @DatabaseField
    Date lastLoginTime;
    /**
     * 注册时间
     */
    @DatabaseField
    Date registerTime;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getLogin() {
        return login;
    }

    public void setLogin(String login) {
        this.login = login;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public Date getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(Date registerTime) {
        this.registerTime = registerTime;
    }
}